#######################################################################################################################
# Legislature Size and Party Unity Evidence from Historical U.S. State Legislatures ############
# Jaclyn Kaslovsky and Michael P. Olson ############
# Journal of Politics ############
# README File ############
#######################################################################################################################

This file outlines the software, code, and data used to produce the results 
presented in "Legislature Size and Party Unity Evidence from Historical U.S. State Legislatures," by Jaclyn Kaslovsky and Michael P. Olson.
In order to replicate all tables from the main text, replicators should run "Main Analysis.R"
In order to replicate all tables from the supplementary materials, replicators should open and run "Appendix Code.R".

##########################################################################################
	## Scripts ##
##########################################################################################

	"Main Analysis.R"
		loads in final datasets, runs regressions, and outputs tables and figures in the main text.

	"Appendix Regressions.R"
		loads in final datasets, runs regressions, and outputs all tables in the appendix text.

##########################################################################################	
	## Data ##
##########################################################################################

	"ilin_data.csv": Illinois and Indiana legislator-year level data used in main analyses

	"njvt_data.csv": New Jesey and Vermont legislator-year level data used in main analyses	

	"il_sample_50_75_coding.csv" Sample of Illinois votes to create Figure B.1

	"Law_IL.xlsx" The number of laws and joint resolutions by year in Illinois to create Figure A.4

	"dubin_excerpt.dta" Data from Dubin, Michael J. 2007. Party Affiliations in the State 
	Legislatures: A Year By Year Summary, 1796-2006. McFarland.

##########################################################################################	
	## Software Dependencies ##
##########################################################################################	

	All analyses were originally undertaken in R version 4.4.0 "Puppy Cup" on a system running
	Windows 10.

	Package dependencies in Main Analysis File:  	[1] haven_2.5.4            english_1.2-6          tidyr_1.3.1            starpolishr_0.0.0.9007 	[5] dplyr_1.1.4            readxl_1.4.3           ggplot2_3.5.1          stargazer_5.2.3        	[9] lfe_3.0-0              DataCombine_0.2.21   

	Packages dependencies in Appendix File:
 	[1] haven_2.5.4            english_1.2-6          tidyr_1.3.1            starpolishr_0.0.0.9007 	[5] dplyr_1.1.4            readxl_1.4.3           ggplot2_3.5.1          stargazer_5.2.3        	[9] lfe_3.0-0                      
	
	
		